package io.gitee.zhangbinhub.admin.resource.server.po

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank

@Schema(description = "启动流程参数")
data class ProcessStartPo(
    @field:Schema(description = "流程定义键", required = true)
    @field:NotBlank(message = "流程定义键不能为空")
    var processDefinitionKey: String? = null,
    @field:Schema(description = "业务键", required = true)
    @field:NotBlank(message = "业务键不能为空")
    var businessKey: String? = null,
    @field:Schema(description = "标题", required = true)
    @field:NotBlank(message = "标题不能为空")
    var title: String? = null,
    @field:Schema(description = "流程描述", required = true)
    @field:NotBlank(message = "流程描述不能为空")
    var description: String? = null,
    @field:Schema(description = "自定义参数")
    var params: MutableMap<String, Any> = mutableMapOf()
)
